package org.example.MedicalCrowdsourcing.repository;

import org.example.MedicalCrowdsourcing.model.entity.Project;
import org.example.MedicalCrowdsourcing.model.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProjectRepository extends JpaRepository<Project, Long> {
    List<Project> findByResearcher(User researcher);
    List<Project> findByParticipantsContaining(User participant);
    List<Project> findByStatus(String status);
} 